package com.ruoyi.driver.service.impl;


import com.ruoyi.driver.domain.CarownerVehiclelengh;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.driver.mapper.CarownerVehiclelenghMapper;

import com.ruoyi.driver.service.ICarownerVehiclelenghService;

import java.util.List;

/**
 * 车辆长度Service业务层处理
 * 
 * @author Wevon
 * @date 2024-08-13
 */
@Service
public class CarownerVehiclelenghServiceImpl implements ICarownerVehiclelenghService 
{
    @Autowired
    private CarownerVehiclelenghMapper carownerVehiclelenghMapper;

    /**
     * 查询车辆长度
     * 
     * @param id 车辆长度主键
     * @return 车辆长度
     */
    @Override
    public CarownerVehiclelengh selectCarownerVehiclelenghById(Long id)
    {
        return carownerVehiclelenghMapper.selectCarownerVehiclelenghById(id);
    }

    /**
     * 查询车辆长度列表
     * 
     * @param carownerVehiclelengh 车辆长度
     * @return 车辆长度
     */
    @Override
    public List<CarownerVehiclelengh> selectCarownerVehiclelenghList(CarownerVehiclelengh carownerVehiclelengh)
    {
        return carownerVehiclelenghMapper.selectCarownerVehiclelenghList(carownerVehiclelengh);
    }

    /**
     * 新增车辆长度
     * 
     * @param carownerVehiclelengh 车辆长度
     * @return 结果
     */
    @Override
    public int insertCarownerVehiclelengh(CarownerVehiclelengh carownerVehiclelengh)
    {
        return carownerVehiclelenghMapper.insertCarownerVehiclelengh(carownerVehiclelengh);
    }

    /**
     * 修改车辆长度
     * 
     * @param carownerVehiclelengh 车辆长度
     * @return 结果
     */
    @Override
    public int updateCarownerVehiclelengh(CarownerVehiclelengh carownerVehiclelengh)
    {
        return carownerVehiclelenghMapper.updateCarownerVehiclelengh(carownerVehiclelengh);
    }

    /**
     * 批量删除车辆长度
     * 
     * @param ids 需要删除的车辆长度主键
     * @return 结果
     */
    @Override
    public int deleteCarownerVehiclelenghByIds(Long[] ids)
    {
        return carownerVehiclelenghMapper.deleteCarownerVehiclelenghByIds(ids);
    }

    /**
     * 删除车辆长度信息
     * 
     * @param id 车辆长度主键
     * @return 结果
     */
    @Override
    public int deleteCarownerVehiclelenghById(Long id)
    {
        return carownerVehiclelenghMapper.deleteCarownerVehiclelenghById(id);
    }
}
